-
Notifications
You must be signed in to change notification settings - Fork 5.2k
JIT: Fix check for cast type for cast on top of address #118019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a bug in the JIT compiler's cast type checking logic when dealing with address casts. The issue was that the code was incorrectly checking the node's type instead of the cast's target type when filtering out casts of local addresses to small types.
- Replaces direct type checking with proper cast target type validation
- Adds proper code block structure around the GT_CAST case
- Fixes the logic to correctly identify pointer-type casts
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
|
cc @dotnet/jit-contrib PTAL @EgorBo |
|
/azp run runtime-coreclr superpmi-diffs |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Had to push another commit to check for |
The failing test in #118006 casts addresses of locals to small types, and this check was not checking the right type to filter out those casts.
Fix #118006